//数据集合配置
const { Schema, model } = require('mongoose');
//1.设置集合结构(设置每一条数据的属性名和属性值的类型)
const adminsSchema = new Schema({
    account: String,
    password: String,
    code: {
        type: Boolean,
        default: true
    },
    delete:{
        type:Boolean,
        default:false
    }
}, { versionKey: false });

//2.设置集合类型
const adminsModel = model('adminsModel', adminsSchema, 'admins');

module.exports.adminsModel = adminsModel;